## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS = subdir-objects

## INCLUDES = @EXTERNAL_CFLAGS@

lib_LTLIBRARIES = libYSE.la

## public YSE headers (use a _HEADERS item for every subdirectory with hpp files)
include_HEADERS = yse.hpp channel.hpp device.hpp listener.hpp playlist.hpp reverb.hpp sound.hpp system.hpp 
backend_HEADERS = backend/*.hpp 
dsp_HEADERS = dsp/*.hpp 
dsp_modules_HEADERS = dsp/modules/*.hpp 
utils_HEADERS = utils/*.hpp
headers_HEADERS = headers/*.hpp
 

# define the subdirectory for _HEADERS item
backenddir = $(includedir)/backend
dspdir = $(includedir)/dsp
dsp_modulesdir = $(includedir)/dsp/modules
utilsdir = $(includedir)/utils
headersdir = $(includedir)/headers


OS_SPECIFIC_CFLAGS = @OS_SPECIFIC_CFLAGS@
OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@

## SYMBOL_FILES = Symbols.gnu-binutils Symbols.darwin libsndfile-1.def Symbols.os2 Symbols.static

## noinst_HEADERS = *.h

BASE = channel.cpp device.cpp listener.cpp playlist.cpp reverb.cpp sound.cpp speakers.cpp system.cpp

BACKEND = backend/filesysImpl.cpp backend/filesystem.cpp backend/pa.cpp backend/reverbbackend.cpp backend/soundfile.cpp backend/ysetime.cpp backend/opensl.cpp

INTERNAL = internal/channelimpl.cpp internal/internalObjects.cpp internal/listenerimpl.cpp internal/playlistimpl.cpp internal/reverbimpl.cpp internal/settings.cpp internal/soundimpl.cpp

DSP = dsp/delay.cpp dsp/dsp.cpp dsp/filters.cpp dsp/math.cpp dsp/math_functions.cpp dsp/oscillators.cpp dsp/ramp.cpp dsp/sample.cpp

DSP_MODULES = dsp/modules/hilbert.cpp dsp/modules/ringModulator.cpp dsp/modules/sineWave.cpp

# instruments
INTERNAL_INSTRUMENTS = internal/instruments/baseInstrumentImpl.cpp \
		       internal/instruments/samplerImpl.cpp
INSTRUMENTS = instruments/instrument.cpp instruments/sampler.cpp 

# musical concepts
MUSIC = music/chord.cpp music/note.cpp music/track.cpp
INTERNAL_MUSIC = internal/music/globalTrack.cpp \
		 internal/music/trackImpl.cpp

UTILS = utils/error.cpp utils/guard.cpp utils/memory.cpp utils/vector.cpp

EXTRA_DIST = *.h backend/*.h dsp/*.h internal/*.h internal/instruments/*.h internal/music/*.h utils/*.h music/* instruments/* internal/music/* internal/instruments/*

CLEANFILES = *~


#===============================================================================
libYSE_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@ 
libYSE_la_CPPFLAGS = -std=gnu++11
libYSE_la_SOURCES = $(BASE) $(BACKEND) $(INTERNAL) $(DSP) $(DSP_MODULES) $(UTILS)

AUTOHEADER=echo

